Skip to content

fix(thread): add warning when attachments are too big#260

Merged
Akinator31 merged 1 commit intomainfrom
dev
Nov 27, 2025
Merged

fix(thread): add warning when attachments are too big#260
Akinator31 merged 1 commit intomainfrom
dev

Conversation

@Akinator31
Copy link
Copy Markdown
Member

This pull request introduces a new check for Discord message attachments to ensure they do not exceed the 8 MB file size limit, and adds localized error messages in both English and French to inform users when their attachments are too large.

Attachment size validation:

  • Added a check in guild_messages_handler.rs and threads.rs to prevent forwarding or creating channels for messages with attachments larger than 8 MB. If such an attachment is detected, the user receives a system message and the operation is aborted. [1] [2]

Internationalization updates:

  • Added a new English error message (discord.attachment_too_large) to inform users about the attachment size limit.
  • Added a French translation for the new error message to ensure users receive the correct notification in their preferred language.

@Akinator31 Akinator31 self-assigned this Nov 27, 2025
@Akinator31 Akinator31 linked an issue Nov 27, 2025 that may be closed by this pull request
@Akinator31 Akinator31 merged commit 9686c50 into main Nov 27, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add warnings when attachments are too big

1 participant